package cn.codingjc.aurora.module.system.biz.core;

import cn.codingjc.aurora.framework.oauth.core.justauth.AbstractCustomerRequest;
import me.zhyd.oauth.cache.AuthStateCache;
import me.zhyd.oauth.config.AuthConfig;
import me.zhyd.oauth.config.AuthSource;
import me.zhyd.oauth.model.AuthCallback;
import me.zhyd.oauth.model.AuthToken;
import me.zhyd.oauth.model.AuthUser;

/**
 * @ClassName MyRequest
 * @Description Todo
 * @Author jccoding
 * @Date 2024/2/25 13:02
 * @Version 1.0
 **/
public class MyRequest extends AbstractCustomerRequest {
    public MyRequest(AuthConfig config, AuthSource source) {
        super(config, source);
    }

    public MyRequest(AuthConfig config, AuthSource source, AuthStateCache authStateCache) {
        super(config, source, authStateCache);
    }

    /**
     * 实现获取access token的方法，发送http
     * @param authCallback
     * @return
     */
    @Override
    protected AuthToken getAccessToken(AuthCallback authCallback) {
        return null;
    }

    /**
     * 获取用户信息
     * @param authToken
     * @return
     */
    @Override
    protected AuthUser getUserInfo(AuthToken authToken) {
        return null;
    }
}
